
#ifndef _MEMBER_BSPINBOX_H_
#define _MEMBER_BSPINBOX_H_

#include <BSpinBox>
#include <BString>

namespace BWE
{
	class member_BSpinBox
	{
	public:
		member_BSpinBox(BSpinBox* spinbox);
		~member_BSpinBox();

		bool freshRects();

		BSpinBox*		boss;
		int				value;
		int				step;
		BRange			range;
		BString			text;
		BString			prefix;
		BString			suffix;
		Align			align;

		bool			changed;
		bool			justFocused;
		bool			pressed;
		int				pressedIndex;
		BRect			prefixRect;
		BRect			textRect;
		BRect			suffixRect;
		int				hoverIndex;
		int				inputIndex;
		int				inputCount;
		bool			inputShown;
		BArray<BRect>	rects;
	};
}

#endif